package com.qyhl.shop.shop.gift.detail;

import com.qyhl.webtv.commonlib.entity.shop.ShopGiftDetailBean;

public class ShopGiftDetailPresenter implements ShopGiftDetailContract.ShopGiftDetailPresenter {
    private ShopGiftDetailModel mModel;
    private ShopGiftDetailContract.ShopGiftDetailView mView;

    public ShopGiftDetailPresenter(ShopGiftDetailContract.ShopGiftDetailView mView) {
        this.mView = mView;
        this.mModel = new ShopGiftDetailModel(this);
    }

    @Override
    public void getDetail(int userGiftId) {
        mModel.getDetail(userGiftId);
    }

    @Override
    public void setDetail(ShopGiftDetailBean bean) {
        mView.setDetail(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
